/*
 * @Author: gaoyu gy15354315043@163.com
 * @Date: 2024-11-08 10:23:06
 * @LastEditors: gaoyu gy15354315043@163.com
 * @LastEditTime: 2024-11-08 13:30:49
 * @Description: 
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
 */
import { default as request, cloud } from '@/framework/utils/request';
import { ResultData } from '@/framework/api/common';
import { searchType,searchResult } from './types'
/**
 * @description: 搜索栏-根据应用名称或菜单名称查询
 * @param {Partial} params
 * @return {*}
 */
export function searchByAppOrMenuName(query:searchType):Promise<ResultData<searchResult[]>> {
    return request({
      url: `${cloud.businessBasic}/portal/searchByAppOrMenuName`,
      method: 'get',
      params: query
    })
  }